home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / windows / bltcap15.zip / BLTCAP.TXT < prev    next >
Text File  |  1992-09-11  |  13KB  |  365 lines

  1.  
  2.  
  3. *****************************************************************************
  4. *                                                                           *
  5. * BLTCAP V1.0 - Bulletin Capture Program For Use With Intellicom 1.0 and    *
  6. *               Higher (possibly lower!)                                    *
  7. *                                                                           *
  8. *****************************************************************************
  9.  
  10. Copyright (c) 1992 by Thunder Lizard Ltd..
  11. All Rights Reserved.
  12.  
  13.  
  14. Disclaimer
  15.  
  16. You are free to use and distribute Bltcap as long as:
  17.  
  18.   * No fee is charged for use, copying, or distribution.
  19.   * The files are not modified in any way.
  20.   * All files are distributed together.
  21.  
  22. This software is distributed "AS IS". THUNDER LIZARD LIMITED
  23. DISCLAIMS ALL WARRANTIES OF THIS SOFTWARE, WHETHER EXPRESSED OR 
  24. IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF 
  25. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, FUNCTIONALITY 
  26. OR DATA INTEGRITY OR PROTECTION. IN NO EVENT SHALL THUNDER LIZARD
  27. LIMITED BE LIABLE FOR ANY DAMAGES ARISING OUT OF THE USE, OR
  28. INABILITY TO USE, THIS SOFTWARE.
  29.  
  30. Intellicomm is a registered trademark of Liberation Enterprises.
  31. The QWK format is Copyright 1987 by Sparkware.
  32. Canada Remote Systems is a registered trademark of 884097 Ontario Limited.
  33.  
  34.  
  35. Overview
  36.  
  37. Bltcap is a FREEWARE add-on for use with Intellicomm V1.0 or higher.
  38. It is designed to capture bulletins from a BBS and incorporate them
  39. into a QWK compatible mail packet.
  40.  
  41. Bltcap has the unique feature of generating a customized Intellicomm
  42. script each time it is run. Unlike generic script-based alternatives,
  43. bltcap's custom script captures ONLY the bulletins that have changed.
  44. It doesn't have to test every download combination possible. This makes
  45. it extremely fast, saving precious on-line time for other tasks.
  46.  
  47. In addition, bltcap provides the ability to always include or exclude
  48. specific bulletins. This way, you receive only the bulletins that are
  49. of interest to you. Bltcap also handles conference specific bulletins.
  50.  
  51. Finally, bltcap was designed to be as generic as possible. It generates
  52. its custom script based on information stored in an initialization file.
  53. You can specify a different initialization file for each BBS that you
  54. want to run bltcap on. In addition, creation of these initialization
  55. files is done "automagically", since bltcap derives most of its information
  56. from your ICOM.INI and BIF files. If you've correctly set up Intellicom,
  57. configuring bltcap should be a breeze.
  58.  
  59.                                       - 1 -
  60.  
  61.  
  62.  
  63. Installing Bltcap
  64.  
  65. If you only intend to capture bulletins from one BBS, just copy the contents
  66. of this archive into your Intellicomm directory (e.g. C:\ICOM). It also
  67. GREATLY simplifies the configuration and running of the program.
  68.  
  69. If you intend to customize bltcap for a number of BBS's and don't want to mix
  70. your Intellicomm files with the ones created by bltcap, I would recommend
  71. making a sub-directory under your Intellicom directory (e.g. C:\ICOM\BLTCAP). 
  72.  
  73.  
  74. Configuring Bltcap
  75.  
  76. If you want to get started without reading anything, just type "bltcap /h"
  77. and figure things out from there. Otherwise...
  78.  
  79. In order to configure bltcap for a specific BBS, it needs access to the
  80. Intellicomm initialization file, ICOM.INI (or it's equivalent if you use a
  81. different one), and the BIF file for the desired BBS. Before I walk through a
  82. couple of examples, here's the full syntax of the setup option of bltcap:
  83.  
  84.    bltcap /s bif_file [bltcap_ini_name] [icom_ini_name]
  85.  
  86. Where: /s is the setup option
  87.  
  88.        bif_file is the name of the Intellicomm BIF file that corresponds
  89.        to the desired BBS. blt_cap will default to looking in the BIF
  90.        sub-directory if it can find it. Otherwise, type the full path name
  91.        for the BIF file.
  92.  
  93.        bltcap_ini_name is the optional name of the initialization file that
  94.        will be created. The default name is "bltcap.ini".
  95.  
  96.        icom_ini_name is the optional name of the Intellicomm initialization
  97.        file that you use. Bltcap will look for the default "icom.ini" in the
  98.        current directory. Otherwise, type the full path name for your
  99.        Intellicomm initialization file.
  100.  
  101.  
  102. A Simple Example
  103.  
  104. Unless you've made life miserable for yourself by changing all you Intellicomm
  105. default directory names, initialization file names etc... here's an example of
  106. a simple setup.
  107.  
  108. Assuming you have Intellicomm installed in it's default location (C:\ICOM), and
  109. bltcap.exe is located in C:\ICOM, in order to set up the BIF CRS.BIF, you would
  110. type: bltcap /s crs.bif. That's all there is too it!
  111.  
  112. After bltcap creates it's initialization file (bltcap.ini), it will prompt you
  113. and ask if you want to modify your "postmail.bat" file. This is a file which
  114. is executed by Intellicomm after a mail packet has been downloaded. All
  115. modifications are added to the end of the file. You're now set up to use bltcap
  116. in your Intellicomm jobs.
  117.  
  118.  
  119.  
  120.                                       - 2 -
  121.  
  122.  
  123.  
  124. In order to capture bulletins, your Intellicomm job should look something like
  125. the following:
  126.  
  127.    Call CRS
  128.      DOS: bltcap.exe   <- Option 13 on the Intellicomm Job menu
  129.      CC: @bltcap       <- Option 12 on the Intellicomm Job menu
  130.      ...
  131.      ...
  132.      Get all new mail
  133.      ...
  134.      ...
  135.      Exit to DOS
  136.  
  137. When the job runs, bltcap will create a custom script called bltcap.scr and
  138. places it in your script directory. The next line in the job then executes that
  139. script. At some point in the job, you should download your mail packet. When
  140. the job completes, Intellicomm will run postmail.bat which will add the
  141. captured bulletins into your mail packet.
  142.  
  143. After your job has run, you should check your ICOM.USE file (located in the CAP
  144. sub-directory). Bltcap will place a comment in the file indicating how many
  145. bulletins it captured.
  146.  
  147.  
  148. A Complex Example
  149.  
  150. If you want to run bltcap on a number of different BBS's, you'll need to
  151. create a custom initialization file for each BIF. As an example, say you made a
  152. sub-directory under Intellicomm called C:\ICOM\BLTCAP and copied this package
  153. into it. In order to create a custom initialization file for CRS.BIF (located
  154. in C:\ICOM\BIF), you would type the following:
  155.  
  156.    bltcap /s c:\icom\bif\crs.bif crs.ini c:\icom\icom.ini
  157.  
  158. This will create an initialization file for bltcap called crs.ini and store it
  159. in C:\ICOM\BLTCAP. You can create initialization files for other BIF's in a
  160. similar manner.
  161.  
  162. In order to capture bulletins, your Intellicomm job should look something like
  163. the following:
  164.  
  165.    Call CRS
  166.      DOS: c:\icom\bltcap\bltcap.exe /i c:\icom\bltcap\crs.ini
  167.      CC: @bltcap
  168.      ...
  169.      ...
  170.      Get all new mail
  171.      ...
  172.      ...
  173.      Exit to DOS
  174.  
  175. In this job, bltcap is run with the /i option which tells it to use an
  176. initialization file other than the default, bltcap.ini. Apart from this, its
  177. operation is the same as described in the simple example above.
  178.  
  179.  
  180.  
  181.                                       - 3 -
  182.  
  183.  
  184.  
  185. Customizing Bltcap
  186.  
  187. Hopefully, I've made bltcap robust enough to create a custom script based only
  188. on the information stored in its initialization file. So if your job bombs,
  189. it "should" just be a matter of tweaking your initialization file. As such,
  190. here's an example initialization file and a complete breakdown of each entry:
  191.  
  192. Sample contents of bltcap.ini:
  193.  
  194. BLTCAP1                       - Initialization file header
  195. version="1.5"                 - Bltcap version number
  196. capfile="C:\ICOM\CAP\ICOM.CAP" - Icom session capture file to look at
  197. scrdir="C:\ICOM\SCR"          - Icom script directory to store bltcap.scr
  198. desc="Canada Remote System"   - BIF description of the system you're on
  199. scac="N"                      - BBS scan messages response
  200. pauc=" "                      - BBS pause message response
  201. nomc="N"                      - BBS more prompt response (set to Y for Win 3.x)
  202. scap="last read"              - BBS scan message
  203. paup="er) to continue"        - BBS pause message
  204. morp="More? "                 - BBS more prompt
  205. mnap="Board Command? "        - Main board prompt
  206. mnbp="rence Command? "        - Secondary (conference) board prompt
  207. lnbc="A"                      - Leave secondary board prompt command
  208. lmmc="Q"                      - Leave mail door command
  209. mmnp="Qmail Command? "        - Mail door prompt
  210. facc="J % Q"                  - Change area command
  211. lbmc="Q"                      - Leave bank door command
  212. bmnp="] Command? "            - Bank door prompt
  213. srch="New Bulletin(s):"       - Search string for new bulletins (in icom.cap)
  214. bcmd="B Q"                    - Access bulletin area command
  215. bltp="List Command?"          - Bulletin area prompt
  216. lcmd="% NS"                   - List bulletin command (set to "%" for Windows)
  217. include="5 13:5 13:1"         - Always include these bulletins
  218. exclude="2 4"                 - Always exclude these bulletins
  219. delay="20"                    - More loop delay time (in 10th's of a second)
  220. timeout="600"                 - General timeout time (in seconds)
  221.  
  222. N.B. Each line should have no leading spaces and the parameters should be
  223.      enclosed in quotes.
  224.  
  225. Unlike version 1.0 which had only a few parameters, there's just too many
  226. parameters in version 1.5 to explain in detail. If you want to see what each
  227. does, change a parameter and run bltcap. Take a look at bltcap.scr to see what
  228. changed. Only the include and exclude parameter are of real use. Read the
  229. whats.new file for details on some of the new features and how to tweak some of
  230. the above parameters to implement the new features.
  231.  
  232. The Custom Script File, BLTCAP.SCR
  233.  
  234. If you are interested in writing Intellicomm scripts, or want to try and debug
  235. the one created by bltcap.exe, you should look at BLTCAP.SCR located in your
  236. SCR (script) directory. Each time bltcap.exe is run, it will create a custom
  237. commented script. Since every line in the script is commented, it makes it
  238. very easy to see what the script does. Now if you only could figure out how
  239. it gets created...
  240.  
  241.  
  242.                                       - 5 -
  243.  
  244.  
  245.  
  246. Limitations
  247.  
  248. Although I've tried to make the package as easy to use and customize as
  249. possible, there are a couple of obvious limitations/features. First, and
  250. foremost, it only works with QWK mail packets. I haven't got a clue
  251. (or interest) about other types of mail packets.
  252.  
  253. Also, because of the simplistic naming convention for QWK bulletin files
  254. (BLT-x.y where x is the conference area and y is the bulletin number),
  255. there's no way to distinguish which BBS the bulletins came from. As a result,
  256. if you try to run a job like:
  257.  
  258.    Call BBS1
  259.      DOS: bltcap /i bbs1.ini
  260.      CC: @bltcap
  261.      Get all new mail
  262.    Call BBS2
  263.      DOS: bltcap /i bbs2.ini
  264.      CC: @bltcap
  265.      Get all new mail
  266.    ...
  267.    ...
  268.  
  269. Bltcap will successfully capture bulletins for each board, but will overwrite
  270. bulletins captured from previous BBS's. Also, when postmail.bat runs, it will
  271. stuff ALL bulletins it finds into the first QWK mail packet it comes across.
  272. The work around for this is simple, but requires a little effort.
  273.  
  274. First, copy your postmail.bat file to a file that is unique for each BIF. For
  275. the above example, you'd copy postmail.bat to bbs1.bat and bbs2.bat. Then,
  276. edit each batch file to remove all references to mail packets other than the
  277. desired one (bltcap will create a unique entry for each BIF so this should be
  278. easy to find). Finally, modify your job to look like the following: 
  279.  
  280.    Call BBS1
  281.      DOS: bltcap /i bbs1.ini
  282.      CC: @bltcap
  283.      Get all new mail
  284.      DOS: bbs1.bat
  285.    Call BBS2
  286.      DOS: bltcap /i bbs2.ini
  287.      CC: @bltcap
  288.      Get all new mail
  289.      DOS: bbs2.bat
  290.    ...
  291.    ...
  292.  
  293. This will ensure that the captured bulletins for BBS1 get added to the proper
  294. QWK mail packet BEFORE BBS2 gets called. If you need detailed help on this,
  295. send me an E-mail or write.
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.                                       - 6 -
  304.  
  305.  
  306.  
  307. Getting Additional Help
  308.  
  309. Since I monitor the Icom conference on Canada Remote Systems fairly regularly,
  310. you can send mail to "MICHAEL LIVSEY". I'm particularly interested in finding
  311. out what's required, if anything, to get bltcap to successfully run on other
  312. BBS's. As I have indicated, I have only tested the program on Canada Remote
  313. Systems so my logic might be flawed for generic cases.
  314.  
  315. You can also send regular mail to:
  316.  
  317.    Michael Livsey
  318.    F4-1667 Nash Road, Box 94
  319.    Courtice, Ontario
  320.    L1E 1S8
  321.  
  322. In the event that I've really missed the boat and no one can get the program
  323. to do what I can, don't bother chewing out my ear. I'll just hang up my
  324. programming hat and go back to making home-brew!
  325.  
  326. Cheers!
  327.  
  328. Mike. 
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.                                       - 7 -
  364.  
  365.